package com.open.basic.job;

import org.springframework.context.ApplicationEvent;


/**
 * @author: system
 * @Date: 2024/10/17 下午4:36
 * @Version: V1.0
 * @description: |
 */

public class JobEvent extends ApplicationEvent {

    private BasicTask basicTask;

    public JobEvent(final Object source, final BasicTask basicTask) {
        super(source);
        this.basicTask = basicTask;
    }

    public BasicTask getBasicJob() {
        return basicTask;
    }

    public JobEvent setBasicJob(final BasicTask basicTask) {
        this.basicTask = basicTask;
        return this;
    }
}
